package net.maku.kyy.convert;

import net.maku.kyy.entity.KyyUserRoleEntity;
import net.maku.kyy.vo.KyyUserRoleVO;
import net.maku.kyy.vo.KyyUserRoleExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户角色关系
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface KyyUserRoleConvert {
    KyyUserRoleConvert INSTANCE = Mappers.getMapper(KyyUserRoleConvert.class);

    KyyUserRoleEntity convert(KyyUserRoleVO vo);

    KyyUserRoleVO convert(KyyUserRoleEntity entity);

    List<KyyUserRoleVO> convertList(List<KyyUserRoleEntity> list);

    List<KyyUserRoleEntity> convertList2(List<KyyUserRoleVO> list);

    List<KyyUserRoleExcelVO> convertExcelList(List<KyyUserRoleEntity> list);

    List<KyyUserRoleEntity> convertExcelList2(List<KyyUserRoleExcelVO> list);
}